package dcda.ctv.pricezoneapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class StoresManager extends Activity {
	
	Button CurrentLocation, ListProducts, ListStores, ShoppingList, SearchProduct, ChangePassword, Logout;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.storesmanager);	
		
		CurrentLocation = (Button) findViewById(R.id.currentlocation);
		ListProducts = (Button) findViewById(R.id.listproducts);
		ListStores = (Button) findViewById(R.id.liststores);
		ShoppingList = (Button) findViewById(R.id.shoppinglist);
		SearchProduct = (Button) findViewById(R.id.searchproduct);
		ChangePassword = (Button) findViewById(R.id.changepassword);
		Logout = (Button) findViewById(R.id.logout);
		
		
		CurrentLocation.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(StoresManager.this, CurrentLocation.class);
				startActivity(i);
				
			}
		});
		
		ListProducts.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(StoresManager.this, ListProducts.class);
				startActivity(i);
				
			}
		});
		
		ListStores.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(StoresManager.this, ListStores.class);
				startActivity(i);
				
			}
		});
		
		ShoppingList.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(StoresManager.this, Test.class);
				startActivity(i);
				
			}
		});
		
		SearchProduct.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(StoresManager.this, Test.class);
				startActivity(i);
				
			}
		});
		
		ChangePassword.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(StoresManager.this, Test.class);
				startActivity(i);
				
			}
		});
		
		Logout.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(StoresManager.this, Test.class);
				startActivity(i);
				
			}
		});
		
		
		
	}	
	
	

}
